import hasPermi from './modules/hasPermi'
import preventReClick from './modules/preventReClick'


const install = function(Vue) {
    Vue.directive('hasPermi', hasPermi)
    Vue.directive('preventReClick', preventReClick)
}

if (window.Vue) {
    window['hasPermi'] = hasPermi
    window['preventReClick'] = preventReClick
    Vue.use(install); // eslint-disable-line
}

export default install
